#include "../framework/CompileConfig.h"
#include "../framework/Common.h"
#include "Sys_local.h"

int main( int argc, char* argv[] ) {
    common->Init( argc, (const char**)argv, NULL );

    while( 1 ) {
        if( Sys_GetWindowRun() )
            Sys_WindowFrame();
        else {
            break;
        }

        if( !Sys_GetWindowActive() ) {
            continue;
        }
        
        common->Frame();
    }

    common->Shutdown();
    return 0;
}